package framework.controller {
	import framework.service.IRetrieverService;
	import org.robotlegs.mvcs.Command;

	/**
	 * @author Charlie MacIsaac
	 */
	public class RetrieveContentCommand extends Command {
		// PROPERTIES =============================================================================
		[Inject]	public var name : String;
		[Inject]	public var receiver : Function;
		[Inject]	public var retrieverService : IRetrieverService;
		
		// GETTERS + SETTERS ======================================================================
		// CONSTRUCTOR ============================================================================
		public function RetrieveContentCommand() { }
		
		// PUBLIC =================================================================================
		override public function execute() : void {
			super.execute();
			
			retrieverService.retrieve(name, receiver);
		}
		
		// PRIVATE ================================================================================
		// LISTENERS ==============================================================================
	}
}